﻿<?php

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die();
 
jimport( 'joomla.application.component.view' );
 
/**
 * Hellos View
 *
 * @package    Joomla.Tutorials
 * @subpackage Components
 */

class EventcalendarsViewAddCalendarToGroup extends JView
{
  
    function display($tpl = null)
    {
		$model = $this->getModel('managegroup');
		$id = JRequest::getVar( 'id' );
		
		$group = $model->getGroup($id);
		
		$calendars = $model->getCalendars($id);
		
        $this->assignRef('groups', $group );
	
		$this->assignRef('calendars', $calendars );
	
        JToolBarHelper::title( JText::_( 'Hallinnoi kalenteriryhmää' ), 'generic.png' );
        JToolBarHelper::deleteList();
        JToolBarHelper::editListX();

		JToolBarHelper::save('save');
		
     
 
        parent::display($tpl);
    }
}
